# -*- coding: UTF-8 -*-
import random

TIME_ZONE = 1000 
task_generator_method = 'uniform'
classification = 'heterogeneous'
seed = 10
beta = 0.02

LIMITED_MEMORY = 0.5
LIMITED_CPU = 0.5

# 2. task
task_belong_userNUM = 1
# TASK_NUM = 2874
TASK_NUM = 1500
Layer_NUM = 719
TRANSMISSION_RANGE = 3
# TRANSMISSION_RANGE = 1

task_process_density = 800

# 1. user
USER_NUM = TASK_NUM
node_usrnum_limit = 50
userHasTaskNUM = 1

# 3. node
EDGE_NODE_NUM = 9
# node_interval = 2500  # 5G覆盖范围大概500米左右
node_interval = 800
NODE_RESOURCE_TYPE_NUM = 5   

#disk: 20GB-100GB  MB
node_min_disk = 30 * 1024
node_max_disk = 100 * 1024
# node_fixed_disk = 8 * 1024  # default 15

# 5G 500Mb±1Gb 左右
node_min_bandwidth = 800
node_max_bandwidth = 1024
node_fixed_bandwidth = 500  # default 70

# 4G 实际是 100M 左右， 无线带宽 80M 左右
# 5G 实际是 800M 左右， 预估无线宽带为 500M 左右
node_min_wire_bandwidth = 400
node_max_wire_bandwidth = 600
node_fixed_wire_bandwidth = 400

# 以 sub6G 为主以 3.5G 为主
node_min_cpu_freq = 2.8*1000
node_max_cpu_freq = 4*1000
node_fixed_cpu_freq = 4*1000 # default 70

node_max_container_number = 30  # default 10
# node_min_mem = 20
# node_min_cpu = 15

# 3. container
CONTAINER_NUM = 50

# 4. Layer 
LAYER_TOTAL_NUM = 719 

# 7. LFU / LRU Cache related
layer_remove_policy = 'LFU_Size'
lfu_max_layer_size = 20
lfu_max_image_size = 10
lfu_min_free_disk_percent = 0.2

cache_level = 'layer'  

# 8. cloud 大概1M～5M左右
cloud_cpu_frequency = 3.5*1000
cloud_bandwidth = 1024

time_scale = 100

#DCN
Embedding_layer_size = 128

